package com.example.controller;


import com.example.entity.GoodsCategory;
import com.example.service.impl.GoodsCategoryServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;

import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author Str
 * @since 2021-09-26
 */
@RestController
@RequestMapping("/goods-category")
public class GoodsCategoryController {

    @Autowired
    private GoodsCategoryServiceImpl goodsCategoryService;

    @RequestMapping("/list")
    public List<GoodsCategory> list(){
        return goodsCategoryService.list();
    }
}

